import i18n from '@/locales/index'
const { t } = i18n.global

export const columns =  [
  {
    title: t('common.sequenceNo'), dataIndex: 'index', key: 'index', align: 'center', width: 80,
    customRender: ({ index }) => {
      return index + 1
    }
  },
  { title: t('basicData.processVerName'), dataIndex: 'processVersionName', key: 'processVersionName', align: 'center', width: 130 },
  { title: t('basicData.processNo'), dataIndex: 'processNo', key: 'processNo', align: 'center', width: 130 },
  { title: t('basicData.processNames'), ellipsis: true, dataIndex: 'processName', key: 'processName', align: 'center', width: 130 },
  { title: t('basicData.standardTimeSec'), dataIndex: 'standardSeconds', key: 'standardSeconds', align: 'center', width: 130 },
  { title: t('video.bestBeat'), dataIndex: 'best', key: 'best', align: 'center', width: 160 },
  { title: t('video.worstBeat'), dataIndex: 'lame', key: 'lame', align: 'center', width: 160 },
  { title: t('common.operate'), dataIndex: 'operate', key: 'operate', align: 'center', width: 130, fixed: 'right' }
] 
export const modalRules = {
  staffId: [{ required: true, message: t('video.pleaseSelectStaff') }],
  type: [{ required: true, message: t('video.pleaseSelectBeatType') }],
  prodTime: [{ required: true, message: t('video.pleaseSelectProductionTimes') }],
  beatTime: [{ required: true, message: t('video.pleaseSelectVideoTimes') }],
  spendTime: [{ required: true, message: t('video.pleaseInputElapsedTotalTime') }]
}